package com.news.service.impl;

import java.util.HashMap;
import java.util.Map;

import com.news.dao.impl.UserDaoImpl;
import com.news.service.UserService;
import com.news.ssh.entity.User;

public class UserServiceImpl implements UserService {

	private UserDaoImpl userDaoImpl;
	public User login(User user) {
		Map map=new HashMap();
		map.put("name", user.getName());
		map.put("password", user.getPassword());
		return  userDaoImpl.selectUniqueObject(map);
		
	}
	public void setUserDaoImpl(UserDaoImpl userDaoImpl) {
		this.userDaoImpl = userDaoImpl;
	}

	
}
